Skip to content

Conversation

@Hari-Oggy
Copy link

@Hari-Oggy Hari-Oggy commented Oct 6, 2025

This Pull Request fixes/closes #2669.

It changes the following:

  • Added dynamic layout resizing in the status view
  • Introduced new keybindings (Alt+Arrow keys) to adjust horizontal and vertical splits
  • Replaced hardcoded Constraint::Percentage values with configurable state

I followed the checklist:

  • I added unittests
  • I ran make check without errors
  • I tested the overall application
  • I added an appropriate item to the changelog

here is preview:
gituidynamicsizeworking.webm

@Hari-Oggy
Copy link
Author

here is preview :

gituidynamicsizeworking.webm

@cruessler
Copy link
Collaborator

@Hari-Oggy Thanks for the PR!

@extrawurst @naseschwarz I’m wondering whether we should go for the manual solution presented in this PR or rather for an automatic one that doesn’t require manual intervention, but would make customization impossible. What do you think?

@cruessler
Copy link
Collaborator

@extrawurst @naseschwarz Friendly ping: what do you think about whether the left column’s width should be resized automatically by gitui vs. fully controlled by the user?

@Hari-Oggy
Copy link
Author

In this PR, GitUI automatically manages the left column's width while still allowing users to manually adjust both width and height. This approach provides a responsive layout with user customization options.

Screencast.from.2025-10-23.10-15-02.webm

The preview shows two versions:

  • Left side: Standard GitUI with automatic left column width
  • Right side: Same layout with added user width customization options

@extrawurst
Copy link
Collaborator

extrawurst commented Oct 28, 2025

an automatic one that doesn’t require manual intervention, but would make customization impossible. What do you think?

@cruessler what automated solution would that be?

@cruessler
Copy link
Collaborator

@extrawurst Sorry for the long delay!

I was thinking of responsive web design where the layout is completely determined by CSS or of tiling window managers that arrange windows automatically according to the space available.

I think there might be different use cases here that made me hesitate:

  • People who always use gitui at the same size. In these situations, I imagine it makes a lot of sense to give users the option to resize splits manually.
  • People who use terminal multiplexers such as tmux or zellij and open gitui at more than one size. In these situations, it’s less clear to me that manual resizing is the optimal solution as the same percentages can look perfectly fine at one size, but less so at others.

I admit that this might not be the strongest argument for completely automatic layout. If you think it’s a good idea to provide the manual level of control proposed in this PR, I’m happy to start the actual review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow reducing size of the left column

3 participants